package com.starleague.battletech.command;

import com.starleague.StarLeagueException;
import com.starleague.battletech.controller.IBattletechContext;
import com.starleague.battletech.game.IMutableBattletechGame;

public abstract class AbstractBattletechCommand
{
    public abstract <CONTEXT extends IBattletechContext> void execute(CONTEXT context) throws StarLeagueException;

    protected <CONTEXT extends IBattletechContext> IMutableBattletechGame getGame(CONTEXT context)
    {
        return context.resolveGame();
    }
}
